package com.relax.pay.feign;


import com.relax.pay.dto.PayOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author mac
 */
@FeignClient(value = "inst-pay-test", path = "/pay")
public interface PayFeign {

    @PostMapping("/orderPay")
    public PayOrder orderPay(@RequestBody PayOrder order);

    @PostMapping("/updateForSeata")
    void updateForSeata(@RequestParam("id") Integer id);
}
